package sg.edu.nus.iss.billing.entity;

import java.math.BigDecimal;
import java.util.Date;



public class PaymentHistory  extends BaseEntity implements Comparable {
	
	
	public PaymentHistory(Date paymentDate, BigDecimal paymentAmt,
			String paymentMode) {
		
		this.paymentDate = paymentDate;
		this.paymentAmt = paymentAmt;
		this.paymentMode = paymentMode;
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = 5678782751238798444L;
	
	private Date paymentDate;
	private BigDecimal paymentAmt;
	private String paymentMode;
	
	public String getPaymentMode() {
		return paymentMode;
	}
	public void setPaymentMode(String paymentMode) {
		this.paymentMode = paymentMode;
	}
	public Date getPaymentDate() {
		return paymentDate;
	}
	public void setPaymentDate(Date paymentDate) {
		this.paymentDate = paymentDate;
	}
	public BigDecimal getPaymentAmt() {
		return paymentAmt;
	}
	public void setPaymentAmt(BigDecimal paymentAmt) {
		this.paymentAmt = paymentAmt;
	}
	
	@Override
	public String toString() {
		return "PaymentHistory [paymentDate=" + paymentDate + ", paymentAmt="
				+ paymentAmt + ", paymentMode=" + paymentMode + "]";
	}
	@Override
	public int compareTo(Object obj) {
		// TODO Auto-generated method stub
		PaymentHistory paymentHistory = (PaymentHistory)obj;
		return this.getPaymentDate().compareTo(paymentHistory.getPaymentDate());
		
	}

}
